<template>
  <div>
    <div class="recommend-template">
      <div class="title">为您推荐</div>
      <div class="row">
        <a class="item" href="" v-for="item in items" :key="item.id">
          <div>
            <span class="num num-style">{{ item.id }}</span>
            <span class="content" :title="item.title">{{ item.title }}</span>
          </div>
          <span class="item-message">{{ item.message }}</span>
        </a>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      items: [
        {
          id: 1,
          title: '身体健康状况调查',
          message: '20个问题/3页',
        },
        {
          id: 2,
          title: '学生身体健康状况调查',
          message: '26个问题/3页',
        },
        {
          id: 3,
          title: '教师身体健康状况调查',
          message: '24个问题/3页',
        },
        {
          id: 4,
          title: '中小学师生健康调查表',
          message: '22个问题/2页',
        },
        {
          id: 5,
          title: 'xx市中小学师生健康调查表',
          message: '5个问题/1页',
        },
        {
          id: 6,
          title: '社交网站满意度问卷模板',
          message: '34个问题/4页',
        },
        {
          id: 7,
          title: '购物网用户满意度调查',
          message: '21个问题/1页',
        },
        {
          id: 8,
          title: '数码家电类产品满意度模板',
          message: '32个问题/4页',
        },
        {
          id: 9,
          title: '网购消费者的行为习惯调查',
          message: '28个问题/4页',
        },
        {
          id: 10,
          title: '餐饮类团购用户满意度问卷模板',
          message: '31个问题/3页',
        },
      ],
    };
  },
};
</script>

<style scoped>
.recommend-template {
  width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: -8px;
}

.title {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 13px;
}

.row {
  border-top: 1px solid #d9d9d9;
  padding-top: 15px;
  column-count: 2;
  column-gap: 140px;
}

.item {
  width: 630px;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  margin-bottom: 10px;
}

.num {
  font-size: 14px;
  vertical-align: top;
  font-style: italic;
}

.item:nth-child(-n + 3) .num {
  color: #3da6ff;
}

.content {
  font-size: 16px;
  color: #333;
  margin-left: 10px;
}

.item-message {
  font-size: 14px;
  color: #999;
}
</style>
